<template>
  <div :class="`${PREFIX}`">
    <p :class="`${PREFIX}-title`">资讯</p>
    <img class="imgStyle" src="../assets/img/img1.png" alt="" @click="open" />
    <div class="popup" v-show="show">
      <div class="popupinner">
        <div class="close">
          <span @click="close">关闭</span>
        </div>
        <img src="../assets/img/pay.jpg" alt="" />
      </div>
    </div>
  </div>
</template>
<script setup>
const PREFIX = "page5";
import { computed, ref } from "vue";
const props = defineProps({
  height: {
    type: Number,
    default: 0,
  },
});

const show = ref(false);
const open = () => {
  show.value = true;
};
const close = () => {
  show.value = false;
};
</script>
<style lang="less">
.page5 {
  width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 85px 91px 72px 110px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  &-title {
    color: #666666;
    text-align: center;
    font-size: 42px;
  }
  .imgStyle {
    display: block;
    width: 70%;
    margin: 50px auto 0 auto;
  }
  .popup {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    .popupinner {
      width: 300px;
      height: max-content;
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      margin: auto;
      .close {
        text-align: right;
        span {
          display: inline-block;
          padding: 8px;
          font-size: 14px;
          color: #fff;
          cursor: pointer;
        }
      }
      img {
        width: 100%;
      }
    }
  }
}
</style>
